﻿using System.Collections.Generic;
using LJLib.Net.SPI.Com;

namespace PhoneUI.Com
{
    public sealed class AddCusRepRequest : ILJTokenRequest<AddCusRepResponse>
    {
        public string token { get; set; }

        /// <summary>
        /// 客户ID,0-新建客户
        /// </summary>
        public int cusid { get; set; }
        /// <summary>
        /// 客户编号，新建时插入，不能修改
        /// </summary>
        public string cuscode { get; set; }
        /// <summary>
        /// 客户名称，新建时插入，不能修改
        /// </summary>
        public string cusname { get; set; }
        /// <summary>
        /// 客户区域ID,选填
        /// </summary>
        public int cusareaid { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public List<CustRep> custReps { get; set; }
        /// <summary>
        /// 上传附件名称
        /// </summary>
        public List<string> filenames { get; set; }
        /// <summary>
        /// 上传附件内容
        /// </summary>
        public List<byte[]> filedatas { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string cusrep { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string tele { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public string custype { get; set; }
        /// <summary>
        /// 客户简称
        /// </summary>
        public string simplename { get; set; }
        /// <summary>
        /// 客户类别
        /// </summary>
        public string cuskind { get; set; }
        /// <summary>
        /// QQ
        /// </summary>
        public string qqcode { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string tele1 { get; set; }
        /// <summary>
        /// 传真
        /// </summary>
        public string faxno { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        /// 网址
        /// </summary>
        public string nethttp { get; set; }
        /// <summary>
        /// 默认货运部
        /// </summary>
        public string freight { get; set; }
        /// <summary>
        /// 货运部地址
        /// </summary>
        public string stat_address { get; set; }
        /// <summary>
        /// 货运电话
        /// </summary>
        public string freight_tele { get; set; }
        /// <summary>
        /// 货运部手机
        /// </summary>
        public string stat_handtel { get; set; }

        public string GetApiName()
        {
            return "AddCusRep";
        }
    }

    public sealed class AddCusRepResponse : LJResponse
    {
        public int cusid { get; set; }
        public string cuscode { get; set; }
    }
}